#include "calculatorform_d.h"

CalculatorForm_d::CalculatorForm_d(QWidget *parent)
	: QDialog(parent)
{
	setupUi(this);
}

CalculatorForm_d::~CalculatorForm_d()
{

}

void CalculatorForm_d::on_inputSpinBox1_valueChanged(int value)
{
//	if(!QString(ui.inputSpinBox2->value()).isEmpty()){
    outputWidget->setText(QString::number(value + inputSpinBox2->value()));
//	}
}
//! [1]

//! [2]
void CalculatorForm_d::on_inputSpinBox2_valueChanged(int value)
{
    outputWidget->setText(QString::number(value + inputSpinBox1->value()));
}
//! [2]